package com.gitee.cui.basic.plus;

/**
 * 类锁线程安全自增操作类
 * @author cuiqingqiang
 * @version 1.0
 * @date 2021/11/18 16:55
 **/
public class SafeStaticMethodPlus {

    private static int amount = 0;

    public synchronized static void selfPlus() {
        amount++;
    }

    public int getAmount() {
        return amount;
    }
}
